package com.ocom.common.entity.card;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ocom.common.entity.base.EntityCardBase;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "card_info")
public class EntityCardInfo extends EntityCardBase implements Serializable {

	private static final Long serialVersionUID = -3413658250859711454L;
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
	private Long comId;
	@JsonProperty("pId")
	private Long pId;
	@JsonProperty("deptId")
	private Long deptId;
	private String cardNo;
	private String accountNo;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
	private Date endDate;
	private Integer cardState;
	private Date useTimeNow;
	private Integer useLsNow;


	@TableField(exist = false)
	Long costFee;
	@TableField(exist = false)
	Long deposit;
}
